const express = require("express");
const router = express.Router();
const deviceCate = require("../router_handler/deviceCate");
//----------------------------------------------------------------
// 添加分类路由
router.post('/deviceCate/addDeviceCate', deviceCate.addDeviceCate);
// 获取所有分类信息路由
router.get('/deviceCate/deviceCateList', deviceCate.deviceCateList);
// 根据id获取分类名称路由
router.get('/deviceCate/deviceCateList/:id', deviceCate.getDeviceCate)
// 根据id编辑分类名称路由
router.post('/deviceCate/editDeviceCate', deviceCate.editDeviceCate);
// 根据id删除分类名称路由
router.get('/deviceCate/deleteDeviceCate/:id', deviceCate.deleteDeviceCate);
//----------------------------------------------------------------
module.exports = router